#ifndef NEWBOOK_H
#define NEWBOOK_H

#include <QDialog>
#include <QString>
#include <QFileDialog>
#include <QMessageBox>

namespace Ui {
class NewBook;
}

struct bookinfo
{
    double price;
    QString isbn;
    QString Title;
    QString author;
    QString press;
    QString available;
    QString borrower;
    QString tag;
};

class NewBook : public QDialog
{
    Q_OBJECT

public:
    explicit NewBook(QWidget *parent = 0);
    ~NewBook();



signals:
    void editfinished(QStringList strlist);
public slots:
    void savePost2File();

private slots:
    void on_bt_ok_clicked();

    void on_bt_cancel_clicked();

    void on_label_postimg_clicked();

private:
    Ui::NewBook *ui;
    bookinfo info;

    QString m_posterPath;
};

#endif // NEWBOOK_H
